const Router = require("koa-router");
const multer = require("../../utils/multer");
const UserController = require("../../controller/UserController");

const router = new Router();

router.get("/", UserController.getUser);
router.post("/", multer.single("avatar"), UserController.addUser);
router.put("/:id", UserController.updateUser);
router.delete("/:id", UserController.delUser);

module.exports = router;
